package com.seaengine.core.timer
{
	
	import flash.utils.Timer;
	
	public class AnimationTimer extends Timer
	{
		//单件
		private static var s_Instance:AnimationTimer;
		public static var DEFAULT_FPS:uint = 30;
		
		public function AnimationTimer(lock:SingleLock)
		{
			super(Math.round(1000 / DEFAULT_FPS), 0);
			
		}
		public static function getInstance():AnimationTimer
		{
			if(!s_Instance)
			{
				s_Instance = new AnimationTimer(new SingleLock());
			}
			return s_Instance;
		}		
		
		public function getFrameRate():int
		{
			return DEFAULT_FPS;
		}
		
	}
}
class SingleLock
{
	
}